import axios from 'axios'
import { MEMBER } from '../const.js'

export default {
    getAllMembers(params) {
        return axios({
            url:  MEMBER + '/getAllMembers',
            method: "GET",
            params
        })
    },
    cancleMember(data) {
        return axios({
            url: MEMBER + '/cancleMember',
            method: 'POST',
            data
        })
    },
    updateMemberToVip(data) {
        return axios({
            url: MEMBER + '/updateMemberToVip',
            method: 'POST',
            data
        })
    },
    delMember(data) {
        return axios({
            url: MEMBER + '/delMember',
            method: 'POST',
            data
        })
    }
}
